package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.common.web.sso.LoginInfo;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.DjtButcherAdmissionInspections;

import java.util.Map;

/**
 * Created by mz on 15/11/17.
 *
 */
public interface DjtButcherAdmissionInspectionsWriteService extends BaseService<DjtButcherAdmissionInspections>{

    /**
     * 创建入场监督检查单据
     * @param djtButcherAdmissionInspections 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> create(DjtButcherAdmissionInspections djtButcherAdmissionInspections , Integer toStatus,LoginInfo loginInfo);

    /**
     * 跟新单据
     * @param djtButcherAdmissionInspections 单据对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> update(DjtButcherAdmissionInspections djtButcherAdmissionInspections , Integer toStatus,LoginInfo loginInfo);

    /**
     * 根据id 更新单据的有效状态
     * @param admissionId 单据id
     */
    void updateDeleteFlag(Long admissionId);
}
